package com.video_study.controller;

import com.video_study.pojo.UserApprove;
import com.video_study.result.ResponseData;
import com.video_study.service.UserApproveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/approve")
public class ApproveController {
    @Autowired
    UserApproveService userApproveService;
    @RequestMapping(value = "/insert",method = RequestMethod.GET)
    public ResponseData insert(UserApprove userApprove){
      return  userApproveService.insert(userApprove);
    }
    @RequestMapping(value = "/delete",method = RequestMethod.GET)
    public ResponseData delete(UserApprove userApprove){
        return  userApproveService.delete(userApprove);
    }
}
